<?php
		require("../dbconnect.php");
		

		$id=$_GET["q"];
		
		
		$page="1";
		$total_items=$_SESSION['total_items'];
		
		if($id==0)
		{
			$content="Please select area";
		}
		else
		{
			$get_place=mysql_query("select * from os_postage_setting where area_id=$id and $total_items>=from_items and $total_items<=to_items")or die(mysql_error());
							
			if(mysql_num_rows($get_place)==0)
			{
				$content= "$id Total Items - $total_items,Please select area";
			}
			else
			{
				$content= "Total Items - $total_items, Postage fees  - ".$_SESSION['currency_code']." ". number_format($_SESSION['currency_rate']*mysql_result($get_place,0,"total_price"),2);	
			}
		}
		echo iconv('GBK', 'utf-8', $content);
		
?>